package com.dlc.felear.xiaoensale.constant;

public class SfErrorInfo {
    public static String getErrorMsg(int code){
        String temp="未定义";
        switch (code){
            case 9:
                temp="过流故障A";
                break;
            case 12:
                temp="编码器异常";
                break;
            case 13:
                temp="编码器通讯异常";
                break;
            case 14:
                temp="编码器数据异常";
                break;
            case 15:
                temp="编码器电池电压过低";
                break;
            case 16:
                temp="速度偏差过大";
                break;
            case 19:
                temp="飞车故障";
                break;
            case 20:
                temp="供电超压";
                break;
            case 21:
                temp="供电欠压";
                break;
            case 22:
                temp="电流采样故障";
                break;
            case 24:
                temp="过速";
                break;
            case 25:
                temp="电角度辨别失败";
                break;
            case 26:
                temp="惯量辨别失败";
                break;
            case 27:
                temp="DI端子参数设置故障";
                break;
            case 28:
                temp="DO端子参数设置故障";
                break;
            case 45:
                temp="驱动器输出缺相";
                break;
            case 46:
                temp="驱动器过载";
                break;
            case 47:
                temp="电机过载";
                break;
            case 48:
                temp="电子齿轮设定故障";
                break;
            case 49:
                temp="散热器过热";
                break;
            case 50:
                temp="脉冲输入异常";
                break;
            case 55:
                temp="绝对位置复位异常";
                break;
            case 56:
                temp="主电源断电";
                break;
            case 96:
                temp="原点回归错误";
                break;
            default:
                temp=Integer.toString(code);

        }
        return temp;
    }
}
